import request from '@/utils/request'

// 查询监考需求列表
export function listSubjectproctoring(query) {
  return request({
    url: '/subjectproctoring/subjectproctoring/list',
    method: 'get',
    params: query
  })
}

// 查询监考需求详细
export function getSubjectproctoring(id) {
  return request({
    url: '/subjectproctoring/subjectproctoring/' + id,
    method: 'get'
  })
}

// 新增监考需求
export function addSubjectproctoring(data) {
  return request({
    url: '/subjectproctoring/subjectproctoring',
    method: 'post',
    data: data
  })
}

// 修改监考需求
export function updateSubjectproctoring(data) {
  return request({
    url: '/subjectproctoring/subjectproctoring',
    method: 'put',
    data: data
  })
}

// 删除监考需求
export function delSubjectproctoring(id) {
  return request({
    url: '/subjectproctoring/subjectproctoring/' + id,
    method: 'delete'
  })
}
